/**
 * 位置接口定义
 */
export interface Position {
    x: number;
    y: number;
}

/**
 * 游戏状态枚举
 */
export enum GameState {
    READY = 'ready',
    PLAYING = 'playing',
    PAUSED = 'paused',
    GAME_OVER = 'game_over'
}

/**
 * 方块类型枚举
 */
export enum TetrominoType {
    I = 'I',
    O = 'O',
    T = 'T',
    S = 'S',
    Z = 'Z',
    J = 'J',
    L = 'L'
}

/**
 * 方块颜色映射
 */
export const TETROMINO_COLORS: Record<TetrominoType, string> = {
    [TetrominoType.I]: '#00f0f0',
    [TetrominoType.O]: '#f0f000',
    [TetrominoType.T]: '#a000f0',
    [TetrominoType.S]: '#00f000',
    [TetrominoType.Z]: '#f00000',
    [TetrominoType.J]: '#0000f0',
    [TetrominoType.L]: '#f0a000'
};

